﻿<Window x:Class="SSCAI.Client.ReleaseWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="重庆时时彩分析系统" Height="700" Width="800" WindowStartupLocation="CenterScreen" >
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="AliceBlue"  Offset="0"/>                                                                                               
            <GradientStop Color="#FF10DEE8" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="370"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>

        <StackPanel Grid.Column="0">
            <DataGrid  Name="dgLottery" Height="680"  AutoGenerateColumns="False" ItemsSource="{Binding LotterysProperty}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="序号" Binding="{Binding Id, Mode=OneWay}" Width="40" />
                    <DataGridTextColumn Header="开奖期号" Binding="{Binding Issue, Mode=OneWay}" Width="70" />
                    <DataGridTextColumn Header="中奖号码" Binding="{Binding WinningNumber, Mode=OneWay}" Width="60"/>
                    <DataGridTextColumn Header="四D" Binding="{Binding FourDNumber, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="更新时间" Binding="{Binding ModifiedTime, Mode=OneWay}" Width="150"/>
                </DataGrid.Columns>
            </DataGrid>
        </StackPanel>

        <StackPanel Grid.Column="1" Margin="0">
            <Grid  Height="500" Margin="10,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="60"/>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="25" />
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="200" ></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <TextBlock Name="txtCountdown" Height="50"  Grid.Row="0" Grid.ColumnSpan="2" Width="300"   TextWrapping="Wrap" Text="10:00"  VerticalAlignment="Center" TextAlignment="Center" Background="#FF86E811" FontSize="36" FontWeight="Bold" Foreground="#FF0E6632" Margin="-32,5"  />

                <Button Content="生成数据" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"   Width="150" Name="btnGenerateDatas" Click="btnGenerateDatas_Click_1"  />
                <Button Content="更新数据"  Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left"  Width="150" Height="30" />

                <CheckBox Content="过滤顺子跨度" IsChecked="True"  Name="chbShunZhiKuaDu" Grid.Row="2" Grid.Column="0"  />
                <CheckBox Content="过滤相同跨度" IsChecked="True" Name="chbXiangTongKuaDu" Grid.Row="2" Grid.Column="1" />

                <CheckBox Content="过滤豹子号" IsChecked="True" Name="chbDengZhi" Grid.Row="3" Grid.Column="0" />
                <CheckBox Content="过滤胆码" IsChecked="True" Name="chbDanMa" Grid.Row="3" Grid.Column="1"  />

                <CheckBox Content="过滤最冷号" IsChecked="True"  Name="chbZuiLengHao" Grid.Row="4" Grid.Column="0"  />
                <CheckBox Content="过滤上期开奖号" IsChecked="True" Name="chbShangQiKaiJiangHaoMa" Grid.Row="4" Grid.Column="1"  />
                <CheckBox Content="过滤跨度和" IsChecked="True"  Name="chbKuaDuHe" Grid.Row="5" Grid.Column="0" />
                <CheckBox Content="过滤前200期中奖号码" IsChecked="True"  Name="chbQian200" Grid.Row="5" Grid.Column="1" />
                <StackPanel Grid.Row="6" Grid.Column="0" Height="20"   Orientation="Horizontal" >
                    <CheckBox  Content="过滤012路"  Width="100" IsChecked="True" Name="chk012"  />
                    <ComboBox Name="cmb012"  Width="45" />
                </StackPanel>
                <StackPanel Grid.Row="6" Grid.Column="1" Height="20"   Orientation="Horizontal" >
                    <CheckBox Content="过滤0123路"  Width="100" IsChecked="True" Name="chk0123"  />
                    <ComboBox Name="cmb0123"  Width="45" />
                </StackPanel>
                <StackPanel Grid.Row="7" Grid.Column="0" Height="20"  Orientation="Horizontal" >
                    <CheckBox Content="过滤01234路"  Width="100" IsChecked="True" Name="chk01234"   />
                    <ComboBox Name="cmb01234"  Width="45" />
                </StackPanel>
                <CheckBox Content="过滤顺子" IsChecked="True" Name="chkShunzi" Grid.Row="7" Grid.Column="1"  />

                <CheckBox Content="过滤和值" IsChecked="True"  Name="chbHeZhi" Grid.Row="8" Grid.Column="0" />

                <TextBox Name="txtGeneratedData" Grid.Row="9" Grid.ColumnSpan="2" TextWrapping="Wrap" />
                <Button Content="导出此次生成数据并作为投注号码" Grid.Row="10" Grid.ColumnSpan="2" HorizontalAlignment="Left" Name="btnExportDatas" Click="btnExportDatas_Click_1" />
                <TextBlock Name="tbResult" Grid.Row="11" HorizontalAlignment="Left" Width="300" Grid.ColumnSpan="2"></TextBlock>
            </Grid>

        </StackPanel>
    </Grid>
</Window>
